<%--
  添加字典分类模板
  User: guoyao
  Date: 15-12-24
  Time: 下午2:55
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/tags/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <link rel="stylesheet" type="text/css" href="${ctx}/static/css/query_list.css"/>
    <script type="text/javascript" src="${ctx}/static/js/query_codes.js"></script>
    <script type="text/javascript" src="${ctx}/static/jquery/validatebox.js"></script>
    <title>字典信息管理</title>
    <style>
        #fm th {
            text-align:right;
            font-weight: normal;
        }
    </style>
</head>
<body>
<div id="dataGridToolbar" region="north" border="false"
     style="border-bottom: 1px solid #ddd; height: 75px; padding: 2px 5px; background: #fafafa;">
    <div style=" font-size: 12px">
        <table width="100%">
            <tr>
                <td style="width: 8%; text-align: right;">
                    <span>字典名称: </span>
                </td>
                <td style="width: 17%;">
                    <input type="text" id="codeName" name="codeName" style="width: 120px;"/>
                </td>

                <td style="width: 8%; height:30px;text-align: right;">
                    <span>字典分类: </span>
                </td>
                <td style="width: 17%;">
                    <select type="text" name="classId" id="classId" class="easyui-combogrid" style="width: 250px;" data-options="
                            panelWidth: 250,
                            idField: 'classId',
                            textField: 'className',
                            url: '<c:url value="/base/queryCodeClassesForSelectMenu.html" />',
                            method: 'post',
                            rownumbers: true,
                            loadMsg: '数据加载中.....',
                            columns: [[
                                {field:'classId',title:'分类ID',width:100},
                                {field:'className',title:'分类名称',width:100},
                            ]],
                            onLoadError: function (httpRequest) {
                                displayJsonError(httpRequest);
                            }
                        "></select>
                </td>

                <td style="width: 8%; text-align: right;">
                    <span>是否有效: </span>
                </td>
                <td style="width: 17%;">
                    <input id="delTag" class="easyui-combobox" name="delTag" data-options="
                                    url:'<c:url value="/sys/queryComboboxByDict.html?type=DEL_TAG_TYPE&selected=0" />',
                                    method:'get',
                                    valueField:'id',
                                    panelHeight:'auto',
                                    onLoadError: function (httpRequest) {
                                        displayJsonError(httpRequest);
                                    }
                                ">
                </td>

                <td style="width: 8%; text-align: right;" colspan="5"> </td>
                <td style="text-align: center;">
                    <a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="doSearch(['classId','codeName','delTag'],'queryCodes.html');">搜索</a>
                </td>
            </tr>
        </table>
    </div>
    <div>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="doInsert()">添加</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="deleteSubmit()">删除</a>
    </div>
</div>
<!-- 列表DIV -->
<table id="displayTable"></table>
<!-- 删除FORM -->
<form id="deleteForm" method="post">
    <input type="hidden" id="delClassIds" name="delClassIds"/>
    <input type="hidden" id="delCodeIds" name="delCodeIds"/>
</form>
<%--<c:import url="/common/common.jsp"/>--%>
</body>
</html>

